const express = require('express');
const router = express.Router();
const expressJoi = require('@escook/express-joi');
const User_handler = require('../router_handle/user');
const { regest_schema, login_schema } = require('../schema/user')

// 注册 
router.post('/regest', expressJoi(regest_schema), User_handler.regest)
// 登录 
router.post('/login', expressJoi(login_schema), User_handler.login)

module.exports = router

